<%--
  Created by IntelliJ IDEA.
  User: 栋
  Date: 2022/11/19
  Time: 16:31
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>申请上架商品</title>
    <%@include file="/pages/base/base.jsp"%>
</head>
<body>
    <div class="container">
        <div class="applicationContent">
            <div class="errorMsg">
                ${requestScope.msg }
            </div>
            <form action="applicationitemsServlet" method="post" enctype="multipart/form-data">
                <div class="row">
                    <div class="col-25">
                        <label for="itemName">商品名称</label>
                    </div>
                    <div class="col-75">
                        <input type="text" required id="itemName" name="item_name" placeholder="请输入商品名称" value=${requestScope.itemName}>
                    </div>
                </div>
                <div class="row">
                    <div class="col-25">
                        <label for="itemType">商品类型</label>
                    </div>
                    <div class="col-75">
                        <select id="itemType" name="item_type">
                            <option value="1">书籍</option>
                            <option value="2">电子产品</option>
                            <option value="3">生活用品</option>
                            <option value="4">学习用品</option>
                        </select>
                    </div>

                </div>
                <div class="row">
                    <div class="col-25">
                        <label for="itemCount">商品数量</label>
                    </div>
                    <div class="col-75">
                        <input type="number" required id="itemCount" name="item_count">
                    </div>
                </div>
                <div class="row">
                    <div class="col-25">
                        <label for="itemPrice">商品单价</label>
                    </div>
                    <div class="col-75">
                        <input type="text" required id="itemPrice" name="item_price" placeholder="请输入单价">
                    </div>
                </div>
                <div class="row">
                    <div class="col-25">
                        <label for="itemIntroduce">商品介绍</label>
                    </div>
                    <div class="col-75">
                        <textarea id="itemIntroduce" required name="item_introduce" placeholder="商品介绍" style="height:200px"></textarea>
                    </div>
                </div>
                <div class="row">
                    <div class="col-25">
                        <label for="method">交易方式</label>
                    </div>
                    <div class="col-75">
<%--                        <input type="text" required id="method" name="method" placeholder="请设置交易方式" value=${requestScope.method}>--%>
                        <select id="method" name="method">
                            <option value="配送">配送</option>
                            <option value="自取">自取</option>
                        </select>
                    </div>
                </div>
                <div class="row">
                    <div class="col-25">
                        <label for="itemImg">商品图片</label>
                    </div>
                    <div class="col-75">
                        <input type="file" required accept="image/gif, image/jpeg, image/png, image/jpg" id="itemImg" name="item_img">
                    </div>
                </div>
                <div class="row">
                    <input type="submit" value="提交">
                </div>
            </form>
        </div>

    </div>
</body>
</html>
